public class TwoArrayExercise4 {
    public static void main(String[] args) {
        /*
        1
        1 2
        1 2 3
        1 2 3 4
         */
        int[][] arr = new int[4][];


        int count = 1;
        for (int i = 0; i < arr.length; i++) {
            arr[i] = new int[count++];

            for (int j = 0; j < arr[i].length; j++) {
                arr[i][j] = j+1;

                System.out.print(arr[i][j]+"\t");
            }
            System.out.println();
        }
    }
}
